﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddQuestionInfo_zuhe.aspx.cs" Inherits="sysadmin_QuestionManager_AddQuestionInfo_zuhe"  ValidateRequest="false"%>

<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>添加试题</title>
    <link href="../../css/1/css/css.css" type="text/css" rel="stylesheet" />
    <link href="../../js/Showdialog.js" type="text/javascript" />

    <script type="text/javascript">
            function AddComment()
            {
                //window.ffMain.LeftupFrame.MediaPlayer.Controls.Pause();
//                var cu = window.ffMain.LeftupFrame.MediaPlayer.Controls.currentPosition;
                var ul = "AddQuestionResourceMini.aspx";
                
                this.showModalDialog(ul,window,"dialogWidth: 450px; dialogHeight: 230px;status: no; help: no");
            }
            function AddQuestion_danx()
            {
                //window.ffMain.LeftupFrame.MediaPlayer.Controls.Pause();
//                var cu = window.ffMain.LeftupFrame.MediaPlayer.Controls.currentPosition;
                var ul = "CombinationQuestion_Add_danx.aspx";
                
                this.showModalDialog(ul,window,"dialogWidth: 450px; dialogHeight: 230px;status: no; help: no");
            }
    </script>

</head>
<body class="bodymain">
    <form id="form1" runat="server">
        <table border="0" cellpadding="0" cellspacing="0" class="titbg_right" width="100%">
            <tr>
                <td class="titbg_left">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                                <asp:Label ID="lab_AddQuestionInfo_danx_QuestionType" runat="server" Text="试题类型"></asp:Label></td>
                            <th>
                                <asp:RadioButtonList ID="rdbtn_QuestionType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="rdbtn_QuestionType_SelectedIndexChanged"
                                    RepeatDirection="Horizontal">
                                </asp:RadioButtonList></th>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <br />
        <table border="0" cellpadding="0" cellspacing="0" class="tree-titbg_right" width="100%">
            <tr>
                <td class="tree-titbg_left">
                    &nbsp;<asp:Label ID="lab_AddQuestionInfo_danx_AttributeTitle" runat="server" Text="试题属性信息"></asp:Label></td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" class="tableList2" width="100%">
            <tr>
                <th>
                    <asp:Label ID="lab_AddQuestionInfo_danx_CourseName" runat="server" Text="课程名称"></asp:Label></th>
                <td>
                    <asp:DropDownList ID="ddlCourseList" runat="server" AppendDataBoundItems="True" Width="131px">
                        <asp:ListItem Selected="True" Value="-1">请选择课程</asp:ListItem>
                    </asp:DropDownList></td>
                <th>
                    <asp:Label ID="lab_AddQuestionInfo_danx_QuestionState" runat="server" Text="试题状态"></asp:Label></th>
                <td>
                    <asp:DropDownList ID="ddlQuestionState" runat="server" Width="131px">
                        <asp:ListItem Value="1">禁用</asp:ListItem>
                        <asp:ListItem  Value="2">启用</asp:ListItem>
                    </asp:DropDownList></td>
                <th>
                    <asp:Label ID="lab_AddQuestionInfo_danx_QuestionQuestionDiffculty" runat="server"
                        Text="试题难度"></asp:Label></th>
                <td>
                    <asp:DropDownList ID="ddlDiffculty" runat="server">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lab_AddQuestionInfo_danx_QuestionKen" runat="server" Text="知识点"></asp:Label></th>
                <td>
                    <asp:TextBox ID="txtKen" runat="server" Width="125px"></asp:TextBox></td>
                <th>
                    <asp:Label ID="lab_AddQuestionInfo_danx_DefaultScore" runat="server" Text="试题默认分数"></asp:Label></th>
                <td colspan="3">
                    <asp:TextBox ID="txtDefaultScore" runat="server" Width="125px"></asp:TextBox></td>
            </tr>
        </table>
        <br />
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tree-titbg_right">
            <tr>
                <td class="tree-titbg_left">
                    <asp:Label ID="lab_AddQuestionInfo_danx_ContentTitle" runat="server" Text="试题内容信息"></asp:Label></td>
            </tr>
        </table>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList3">
            <tr>
                <th>
                    <asp:Label ID="lab_AddQuestionInfo_danx_QuestionContent" runat="server" Text="试题内容"></asp:Label></th>
                <td>
                    <table border="0" cellpadding="0" cellspacing="0" class="pad5px_up_don">
                        <tr>
                            <td>
                                <%--<FTB:FreeTextBox ID="txtQuestionContent" runat="server" Language="" ToolbarLayout="ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu,FontForeColorPicker,FontBackColorsMenu,FontBackColorPicker|Bold,Italic,Underline,Strikethrough,Superscript,Subscript,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImage|Cut,Copy,Paste,Delete;Undo,Redo,Print,Save|SymbolsMenu,StylesMenu,InsertHtmlMenu|InsertRule,InsertDate,InsertTime|InsertTable,EditTable;InsertTableRowAfter,InsertTableRowBefore,DeleteTableRow;InsertTableColumnAfter,InsertTableColumnBefore,DeleteTableColumn|InsertForm,InsertTextBox,InsertTextArea,InsertRadioButton,InsertCheckBox,InsertDropDownList,InsertButton|InsertDiv,EditStyle,InsertImageFromGallery,Preview,SelectAll,WordClean,NetSpell">
                                </FTB:FreeTextBox>--%>
                                <FCKeditorV2:FCKeditor id="txtQuestionContent" runat ="server" Width="600px" Height="400px"></FCKeditorV2:FCKeditor>
                            </td>
                          <%--  <td align="left" valign="bottom">
                                &nbsp;
                                <input id="Button1" type="button" value='<%=GetLanageValueByKey("btn_AddQuestionInfo_AddMediaFile", PowerCreator.LMS.Language.LanagetItemType.Page) %>' onclick="AddComment()" class="inputBotton2" />
                            </td>--%>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="tree-bottom-bg" colspan="2">
                    <asp:Button ID="btnSave" runat="server" CssClass="inputBotton2" OnClick="btnSave_Click"
                        Text=" 保 存 " />&nbsp;<asp:Button ID="btnBack" runat="server" CssClass="inputBotton2"
                            Text=" 返 回 " OnClick="btnBack_Click" />
                </td>
            </tr>
        </table>
        <br />
        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="btnbg">
            <tr>
                <td colspan="2">
                    <asp:Panel ID="pl_AddChildQuestion" runat="server" Width="100%" Visible="False">
                        <asp:Button ID="btn_Adddanxuan" runat="server" CssClass="inputBotton2" Text=" 添加单选题"
                            OnClick="btn_Adddanxuan_Click" />&nbsp;
                        <asp:Button ID="btn_Addduoxuan" runat="server" CssClass="inputBotton2" OnClick="btn_Addduoxuan_Click"
                            Text=" 添加多选题 " />&nbsp;<asp:Button ID="btn_Addpanduan" runat="server" CssClass="inputBotton2"
                                Text=" 添加判断题 " OnClick="btn_Addpanduan_Click" />&nbsp;<asp:Button ID="btn_Addtiankong"
                                    runat="server" CssClass="inputBotton2" Text=" 添加填空题 " OnClick="btn_Addtiankong_Click" Visible="False" />&nbsp;<asp:Button
                                        ID="btn_Addmingci" runat="server" CssClass="inputBotton2" Text=" 添加名词解释题 " OnClick="btn_Addmingci_Click" />&nbsp;<asp:Button
                                            ID="btn_Addjianda" runat="server" CssClass="inputBotton2" Text=" 添加简答题 " OnClick="btn_Addjianda_Click" /></asp:Panel>
                </td>
            </tr>
        </table>
        <br />
        <asp:GridView ID="gvQuestionList" runat="server" AutoGenerateColumns="False" BorderWidth="0px"
            CssClass="mainList" GridLines="None" OnRowCommand="gvQuestionList_RowCommand"
            OnRowDataBound="gvQuestionList_RowDataBound">
            <Columns>
                <asp:TemplateField Visible="False">
                    <ItemTemplate>
                        <asp:CheckBox ID="Chbox_Check" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Index" HeaderText="编号" />
                <asp:BoundField DataField="ID" HeaderText="试题ID" Visible="False" />
               
                <asp:TemplateField HeaderText="试题内容">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text=""><%#Eval("QuestionContent") %></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="CourseName" HeaderText="所属课程" Visible="False" />
                <asp:BoundField DataField="QuestionTypeID" HeaderText="试题类型" />
                <asp:BoundField DataField="DefaultSource" HeaderText="试题分数" Visible="False" />
                <asp:BoundField DataField="Diffculty" HeaderText="试题难度" />
                <asp:BoundField DataField="QuestionText" HeaderText="正确答案" Visible="False" />
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        &nbsp;&nbsp;
                        <asp:ImageButton ID="ibtnDelete" runat="server" CommandArgument='<%#Eval("url") %>'
                            CommandName="mydelete" ImageUrl="~/images/ico_delete.gif" />
                        &nbsp;
                        <asp:ImageButton ID="ibtnEditor" runat="server" CommandArgument='<%#Eval("url") %>'
                            CommandName="myeditor" ImageUrl="~/images/ico_editor.gif" />
                        &nbsp;
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                <%=GetLanageValueByKey("msg_Page_Nodate", PowerCreator.LMS.Language.LanagetItemType.Page)%>
            </EmptyDataTemplate>
        </asp:GridView>
        &nbsp; &nbsp;<br />
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CustomInfoHTML="当前页  <font color='red'><b>%CurrentPageIndex%</b></font> 总页数  %PageCount%  当前条数 %StartRecordIndex%-%EndRecordIndex%"
            FirstPageText="首页" HorizontalAlign="Center" InputBoxStyle="width:19px" LastPageText="末页"
            meta:resourcekey="AspNetPager1" NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged"
            PrevPageText="上一页" ShowCustomInfoSection="Left" Style="font-size: 14px" Width="100%">
        </webdiyer:AspNetPager>
        <br />
        <br />
    </form>
</body>
</html>
